package com.art8173.advanced.day2.Test1;

public class Test1 {
    public static void main(String[] args) {
        Breeder breeder = new Breeder();
        Dog dog = new Dog();
        Frog frog = new Frog();
        Sheep sheep = new Sheep();
        breeder.breed(dog);
        dog.swimming();
        breeder.breed(frog);
        frog.swimming();
        breeder.breed(sheep);
    }
}
